package hcn.protocol.brandnew.dengji.jibendangan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import org.atag.sysrouter.annotation.DictionaryMapping;


/**
 * 就诊卡信息查询-请求消息 - ODS_02010003
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetCardsInfoRequest extends BaseRequest {

    /**
     * 就诊卡信息
     */
    @XmlElement(name = "MedicalCardInfo")
    private MedicalCardInfo medicalCardInfo;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class MedicalCardInfo {

        /**
         * 就诊医疗机构组织机构代码
         */
        @XmlElement(name = "AuthorOrganization")
        private String authorOrganization;
        /**
         * 就诊卡类别代码
         */
        @XmlElement(name = "MedicalCardType")
        @DictionaryMapping(id = "rmp.dic.medicalCardType")
        private String medicalCardType;
        /**
         * 就诊卡号
         */
        @XmlElement(name = "MedicalCardId")
        private String medicalCardId;
        /**
         * 身份证件类别代码
         */
        @XmlElement(name = "IdCardCode")
        @DictionaryMapping(id = "CV02_01_101")
        private String idCardCode;
        /**
         * 身份证件号码
         */
        @XmlElement(name = "IdCard")
        private String idCard;
        /**
         * 患者姓名
         */
        @XmlElement(name = "Name")
        private String name;
        /**
         * 性别代码
         */
        @XmlElement(name = "Sex")
        private String sex;
        /**
         * 患者电话号码
         */
        @XmlElement(name = "ContactNo")
        private String contactNo;
    }

}
